# for i in range(1,5):
# #     for j in range(1,5):
# #         for k in range(1,5):
# #             if(i != k) and (i != j) and (j != k):
# #                 print(i,j,k)

# i = int(input("净利润："))
# a = [1000000, 600000, 400000, 300000, 100000, 0]
# b = [0.01, 0.015, 0.03, 0.05, 0.075, 0.1]
# r = 0
# for idx in range(0,6):
#     if i > a[idx]:
#         r += (i-a[idx]) * b[idx]
#         print((i-a[idx])*b[idx])
#         i = a[idx]
# print(r)

# for i in range(1,85):
#     if 168 % i == 0:
#         j = 168 / i
#         if i > j and (i + j) % 2 == 0 and (i - j) % 2 == 0:
#             m = (i + j) / 2
#             n = (i - j) / 2
#             x = n * n - 100
#             print(i, j, x)

# year = int(input("year:"))
# month = int(input("month:"))
# day = int(input("day:"))
#
# months = (0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334)
# if 0 < month <= 12:
#     sum = months[month - 1]
# else:
#     print("输入错误")
# sum += day
# if (year % 400 == 0) or ((year % 4 == 0) and (year % 100 != 0)):
#     if month > 2:
#         sum += 1
# print("今天是这一年中的第%d天" % sum)

# i = []
# for i in range(3):
#     x = int(input("输入数字："))
#
# i.sort()
# print(i)

# def fib(n):
#     a, b = 1, 1
#     for i in range(n-1):
#         a, b = b, a + b
#         return a
#
# # 输出了第10个
# print(fib(10))

# a = [1, 2, 3]
# b = a[:2]
# print(b)

# for i in range(1,10):
#     print("")
#     for j in range(1,i+1):
#         print("%d * %d = %d" % (i, j ,i*j), end="\t")

import time


# #
# # myD = {1:"a", 2:"b"}
# # for key,value in dict.items(myD):
# #     print(key, value)
# #     time.sleep(10)

# print(time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(time.time())))

# f1 = 1
# f2 = 2
# for i in range(1,22):
#     print("%12ld %12ld" % (f1, f2))
#     if (i % 3) == 0:
#         print("")
#     f1 = f1 + f2
#     f2 = f1 + f2

# h = 0
# leap = 1
# import math
# import sys
# for m in range(101, 200):
#     k = int(math.sqrt(m + 1))
#     for i in range(2, k+1):
#         if m % i == 0:
#             leap = 0
#             break
#     if leap == 1:
#         print(m)
#         h += 1
#     if h % 10 == 0:
#         print("")
#     leap = 1
# print(h)

# for n in range(100,1000):
#     i = n // 100
#     j = n // 10 % 10
#     k = n % 10
#     if n == i ** 3 + j ** 3 + k ** 3:
#         print(i, j, k, n)


# def reduceNum(n):
#     print("{} = ".format(n), end="")
#     if not isinstance(n, int) or n <= 0:
#         print("请输入一个正确的数字！")
#         exit(0)
#     elif n in [1]:
#         print("{}".format(n))
#     while n not in [1]:
#         for index in range(2, n + 1):
#             if n % index == 0:
#                 n //= index
#                 if n == 1:
#                     print(index)
#                 else:
#                     print("{} * ".format(index), end="")
#                 break
#
#
# reduceNum(2)

# score = float(input("请输入成绩："))
# # if score >= 90:
# #     grade = "A"
# # elif score >= 60:
# #     grade = "B"
# # else:
# #     grade = "C"
# # print("%.2f 属于 %s" % (score,grade))

# import time
#
# if __name__ == "__main__":
#     print(time.localtime(time.time()))

# s = input("请输入一个字符串：")
# letters = 0
# space = 0
# digit = 0
# others = 0
# i = 0
# while i < len(s):
#     c = s[i]
#     i += 1
#     if c.isalpha():
#         letters += 1
#     elif c.isspace():
#         space += 1
#     elif c.isdigit():
#         digit += 1
#     else:
#         others += 1
# print("英文字母有%d个,空格有%d个,数字有%d个,其他字符有%d个." % (letters, space, digit, others))

# n = int(input("请输入次数："))
# a = int(input("请输入计算初值："))
# Tn = 0
# Sn = []
# for count in range(n):
#     Tn = Tn + a
#     a = a *10
#     Sn.append(Tn)
#     print(Tn)
# sum = sum(Sn)
# print(sum)

# import sys
# for j in range(2,1001):
#     k = []
#     n = -1
#     s = j
#     for i in range(1,j):
#         if j % i == 0:
#             n += 1
#             s -= i
#             k.append(i)
#
#     if s == 0:
#         print("{} = ".format(j),end="")
#         for i in range(n):
#             print("{} + ".format(k[i]),end="")
#         print(k[i+1])

# tour = []
# height = []
#
# hei = 100
# tim = 10
#
# for i in range(1, tim + 1):
#     if i == 1:
#         tour.append(hei)
#     else:
#         tour.append(2*hei)
#
#     hei /= 2
#     height.append(hei)
# print(sum(tour))
# print(height[-1])

A = "test.e.mail"
a = A.partition(".")
s = A.find(".")
print(s)
print(a)

